package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.mapper.WenyuMapper;
import com.yl.auth.model.vo.WenyuVo;
import com.yl.auth.model.entity.Wenyu;
import com.yl.auth.service.WenyuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ln
 * @since 2023-06-19
 */
@Service
public class WenyuServiceImpl extends ServiceImpl<WenyuMapper, Wenyu> implements WenyuService {
    @Resource
    private WenyuMapper wenyuMapper;


    @Override
    public Page<WenyuVo> getwenyu(Page<WenyuVo> iPage, String lrname, String sbtime) {
        return wenyuMapper.getwenyu(iPage,lrname,sbtime);
    }

    @Override
    public WenyuVo getwenyuById(Integer id) {
        return wenyuMapper.getwenyuById(id);
    }

    @Override
    public List<WenyuVo> getxiaowenyu() {
        return wenyuMapper.getxiaowenyu();
    }
}
